package com.ysjweb.dish.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper {
    public String GetFavoriteById(Integer id);

    public void UpdateFavoriteById(Integer id, String favorite);

    public void AddUser(String username,String password);

    public Integer GetUserId(String username,String password);

    public Integer GetUserIdByUsername(String username);

    @Select("SELECT id from user where username=#{username}")
    public Integer GetUserId2(String username);
}
